package SQLAPI;

/**
 * An Object that contains the details for a change that occurred in the LDAP
 * directory. Contains a Constructor and getters & setters.
 *
 * @author Mickey(Michael) Fry
 */
public class ChangeObject {

    String attribute_name;
    String previous_value;
    String new_value;

    /**
     * Constructor for a ChangeObject.
     * @param attribute_name - String - Name of the attribute that was changed.
     * @param previous_value - String - Previous value of the attribute.
     * @param new_value - String - New value of the attribute. 
     */
    public ChangeObject(String attribute_name, String previous_value, String new_value) {

        this.attribute_name = attribute_name;
        this.previous_value = previous_value;
        this.new_value = new_value;
    }

    public String getAttribute_name() {
        return attribute_name;
    }

    public void setAttribute_name(String attribute_name) {
        this.attribute_name = attribute_name;
    }

    public String getPrevious_value() {
        return previous_value;
    }

    public void setPrevious_value(String previous_value) {
        this.previous_value = previous_value;
    }

    public String getNew_value() {
        return new_value;
    }

    public void setNew_value(String new_value) {
        this.new_value = new_value;
    }
}
